package com.back.end.Dao;

import com.back.end.Modal.Order;
import com.back.end.Modal.RefundOrder;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface OrderDao {
    public void addOrder(Order order);

    public List<Order> getOrderList(int id);

    public void finishOrder(String id, Timestamp updateTime);

    public List<Order> getAllOrderList();

    public List<Order> getAllOrderListByPage(int pageNum, int pageSize);

    public int getAllOrderCount();

    public void refundOrderSubmit(RefundOrder refundOrder);

    public void updateOrdersRefund(String id, Timestamp updateTime);

    public void deleteRefundOrder(int id);

    public List<RefundOrder> getAllRefundOrders();

    public List<Order> getAppRefundOrders(int id);

    public void confirmRefundOrder(int id, String orderId, int customerId, double payAmount, Timestamp updateTime);

    public void deleteFinishedOrder(String id);

    public void updateMoney(double money, int id);

}
